<?xml version="1.0" encoding="UTF-8" ?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
						  xmlns:rix="urn:rix"
                          xmlns="http://www.w3.org/1999/">
	<xsl:output method="xml" omit-xml-declaration="yes" indent="yes"/>

	<xsl:template match="/">
    <h3>Searching for 'project' or 'management'</h3>
    <ul>
      <xsl:for-each select="rix:Search('contents:project contents:management',50)">
			<li>
			<xsl:apply-templates/>
			</li>		
		</xsl:for-each>
		</ul>

    <h3>Searching for 'project' and 'management'</h3>
    <ul>
      <xsl:for-each select="rix:Search('contents:project &amp;&amp; contents:management',50)">
        <li>
          <xsl:apply-templates/>
        </li>
      </xsl:for-each>
    </ul>

    <h3>Linking comma separated keyword metadata from mock current page field 'mockField' to field contents - tests with 'gibbon' or 'waste' </h3>
    <ul>
      <xsl:for-each select="rix:Search('#injectmeta(MockPage:interest,contents)',50)">
        <li>
          <xsl:apply-templates/>
        </li>
      </xsl:for-each>
    </ul>

    <h3>Linking comma separated keyword metadata from mock current page field 'mockField' to field contents - tests with 'nuclear power' or 'europe' </h3>
    <ul>
      <xsl:for-each select="rix:Search('#injectmeta(MockMember:interest,contents)',50)">
        <li>
          <xsl:apply-templates/>
        </li>
      </xsl:for-each>
    </ul>


    <h3>Summarising:</h3>
    <p>
      Being able to take a look at the words and phrases people use when looking for things online is invaluable. Rather than listening to people say what they think they might do, you get to observe what they actually did. And when aggregated, you get a nice view of the words people most often use when thinking about and searching for a certain topic.Once armed with keyword intelligence that’s relevant to your niche, you have the unique ability to create highly-relevant content that aids your site visitors and enhances your credibility. You’re speaking the language of the audience after all, and satisfying their needs.And if you get it right, you’ll likely rank well in the search engines too, after promoting the content in a strategic way. It may seem strange to view search traffic as a secondary benefit in a Google-driven world, but that’s exactly how you should view it. Google won’t treat you as relevant until someone else does first.
    </p>
    <h3>To 2 sentences:</h3>
    <p>
      <xsl:value-of select="rix:Summarise('Being able to take a look at the words and phrases people use when looking for things online is invaluable. Rather than listening to people say what they think they might do, you get to observe what they actually did. And when aggregated, you get a nice view of the words people most often use when thinking about and searching for a certain topic.Once armed with keyword intelligence that’s relevant to your niche, you have the unique ability to create highly-relevant content that aids your site visitors and enhances your credibility. You’re speaking the language of the audience after all, and satisfying their needs.And if you get it right, you’ll likely rank well in the search engines too, after promoting the content in a strategic way. It may seem strange to view search traffic as a secondary benefit in a Google-driven world, but that’s exactly how you should view it. Google won’t treat you as relevant until someone else does first.',2)"/>
    </p>
    
    
  </xsl:template>
	
	<xsl:template match = "Result">
			<xsl:apply-templates/>
	</xsl:template>

	<xsl:template match = "Score">
		(<xsl:value-of select="./text()"/>)
	</xsl:template>


	<xsl:template match = "Field">
		<xsl:if test="./@name = 'name'">
			<xsl:value-of select="./text()"/>
		</xsl:if>		
	</xsl:template>


</xsl:stylesheet>

  